DRYing up the test.