Add test that params (dynamic segments) are passed
Pass queryParams to handler function