test: make sure TMP.patch is cleaned up