added tests for _parseQuery