Add test for downcasing email input in database