There is a time and place for golden tests, but this reads more like a case for property-based testing.