qapi: add test-visitor, tests for gen. visitor code