[MLP] Add cost test functions