Add tests for QueryRunner.