DRYd out tests