Instead of hardcoding e.g. flatten output, we should use the [snapbox](https://docs.rs/snapbox/latest/snapbox/) test framework