tests: add tests for query string