Nix can't compare functions, so now I allowed the test to expose a custom `check` function to assert the expected shape