Added test for email downcase, and tweaked downcasing in model