Fix references to patch in a test