add a test for query param