Checks for events differing only by case.

Also added more tests.