Adds test case for queryParams.order as a function