Unit test for character tool