fix routes for tests