Write test for mail lib
Create mail lib