chapter 6 exercises, added a test and changed email downcasing