DRY out the tests.