DRY'd up subgen tests