refactor tests to move common generators into base

the complexity of getting the generators setup after the first
couple of sanity checks meant it really made sense to refactor
into a common base class.

Change-Id: I6f41c3c86b9719cdee9adb9b335e8b3104ebe790