Create tests for mail lib