testing logged in view