wrote unit tests for email
correction in tests