Unit testing for getValue() and getUnits(), both pass