def METHOD_NAME(monkeypatch, presence, config):
    """Check if test passes with valid configuration."""
    def mock_file_config(cmdargs):
        backward.update_db_config(config)
        return config
    monkeypatch.setattr(experiment_builder, "get_cmd_config", mock_file_config)
    result, msg = presence.check_configuration_file()
    assert result == "Success"
    assert msg == ""
    assert presence.db_config == config["storage"]["database"]