test added for the getNumberOfDecimalPlaces function