added test function for QueryParams()