chore(tests): use pytest monkeypatch instead of unittest.mock