Fix route helper for tests.