added test for email downcasing
refactored email downcasing before_save