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