Add tests for query string initializer