Add cost method spec tests [skip ci]