All of the above bits are identical in this test. They should be factored out into a `beforeEach` block.