unit tests of cost units and clients