Move patching testsuite to core