fixed unit tests for route change if not logged in