Add a unit test to check GetUnitProperties rejects invalid units.
Fix TestBasicSetActions.