Fix routes reload for tests