Add unit tests for class CharacterTable

Also: remove a useless doctest. (It was not being run.)