qapi: add tests for string-based visitors