patching tests