The CostCalculationTest class, with some tests