Refactored email downcase method and test