Since we keep performing the same operations across five lines of code in this and subsequent tests, I think it would be good to summarize these into a single function. It's possibly the pot calling the kettle black (after all, I left these as they were...), but adherence to DRY will save us at least 36 lines of code here.