Added DimensionTest.compareToEqualsTest and data provider, fixed bug