Abstracting out some of the reusable Test code