fix patching tests