The test in hugr-core/src/hugr/persistent/walker/end_to_end_tests.rs is currently overly complicated (because of missing APIs) and should ideally be writable from outside the repository, either as an integration test in the tests directory or as an example.