adding isAuthorized test for ActivityService