Added unit test for email