This last line is clearly wrong: the method is dropping the query string! Did you just change the impl first, then change the test to make it pass?