small refactoring of route test