--added test for email action