Fix bug in MultiCostRegularTest