def METHOD_NAME(monkeypatch, operation):
    """Check if test fails when count operation fails."""
    operation.c_stage.instance.write("test", {"index": "value"})
    operation.c_stage.instance.write("test", {"index": "value"})
    with pytest.raises(CheckError) as ex:
        operation.check_count()
    assert "2" in str(ex.value)