Finish chapter 6.

Add a test for email case insensitivity.