Added test cases

Added all 6 test cases for changeUnits() and added comments.