Add test for email action.