Added checks for testing state error update