Add tests for charCompare func of CharacterMap class