Added check for states differing only by case.

Updated parsing code to check for this error.
Also added several more test cases.