fix cost test