Implemented tests for getDimWithMaxDev and get constraints and the method getDimWithMaxDev