fix cost_s tests