Fix incorrectly defined tests
Fix diffChars implementation