Make sure urlparse.uses_query is set correctly for tests