add test for and refactor email.downcase