use monkeypatch.undo() to undo changes