Extract out common tss test operations