This line and the one below is not actually asserting the items were removed from dict. Maybe we should just call `Dict.to_list(d)` instead?