Add tests for emails