myrial_test: add a few more helper functions

Before, we could only execute queries. Now we can also get plans of
various types directly.
ensure SchemaMismatchException on logical plan
TDD tests for schema issues in while loops