first tests for (unimplemented) apply_patch
implement apply_patch

Huh, that was easy.