Fixed tests by making the routes localy initialized