DRY out the tests