Fix the tests to work with the dynamic url patterns