fix up tests from apply_inplace change