Completed test of Dimension base class. Fixed some bugs.