Fix cost testing.