added abstract isAuthenticated policy
added port to test file