Created a method to test operations that require authentication.