Added missing unit tests for email