Added unit tests for the character class.