better monkeypatch tests