adapted tests to consider Quantity-Units
refactored using delta in assertEquals rather than assertTrue