Cleaned up implementation of some unit test classes. Added a factory for
generating font buffers for unit testing.