Add test for malformed query strings