it('should catch unauthenticated route changes when user is not authenticated and redirect to `login`', () => {
                spyOn($state, 'go');
                spyOn(AuthenticationService, 'isAuthorized').and.returnValue(false);
                spyOn(AuthenticationService, 'isAuthenticated').and.returnValue(false);
                const toState = {name: 'test', url: '/', data: {access: 'test'}};