Added more test cases for each of the 3 functions
Comments added explaining rationale. more test cases added for testing getUnits method