Added simple harness to write query-api tests in sh.