def METHOD_NAME(three_experiments_same_name_with_trials):
    """Test that deleting an experiment removes the leaf by default"""
    experiments = setup_storage().fetch_experiments({})
    assert len(experiments) == 3
    assert len(setup_storage()._fetch_trials({})) > 0
    for experiment in experiments:
        assert (
            setup_storage().get_algorithm_lock_info(uid=experiments[-1]["_id"])
            is not None
        )
    execute("db rm -f test_single_exp")
    assert len(setup_storage().fetch_experiments({})) == 2
    for experiment in experiments:
        if experiment["version"] == 3:
            assert (
                len(setup_storage()._fetch_trials({"experiment": experiment["_id"]}))
                == 0
            )
            assert (
                setup_storage().get_algorithm_lock_info(uid=experiment["_id"]) is None
            )
        else:
            assert (
                len(setup_storage()._fetch_trials({"experiment": experiment["_id"]}))
                > 0
            )
            assert (
                setup_storage().get_algorithm_lock_info(uid=experiment["_id"])
                is not None
            )