DRYing the tests a bit