added #addDimension() and test