Fix tests of Challenge Cost API