DRYed tests