Added tests, isAuthenticated and beginAuthentication are working