getting rid of odd comparison
added tests for the typo fix