I don't know. this test is super hard to read.

how much code would it be to write it by hand? (or at least generate the code and just paste it in here?)

I think that would be better than this - you could then have just one or a handful of `it`s with a bunch of assertions in each instead of many it's with one assertion each.