chore(tests): Replace calls to require.toUrl with FunctionalHelpers.toUrl, a function that makes adding query parameters to a URL more readable.