added test for "Email ending with a space should be a valid email"