Added junit tests for EmailSettings