fix mock token manager, new test for route, fix routing