Added tests for emails