Patching a test