Added tests for query string parsing