Added update action test for authentication and update the snippet