Add common testcase subroutines.
Add common testcase subroutines.

Signed-off-by: Fionnuala Gunter <b76049e61518de9781f18a52d2d89b5f4ac6ae9f@linux.vnet.ibm.com>

fingunter/OpenCryptoki,shpedoikal/opencryptoki,fingunter/OpenCryptoki,shpedoikal/opencryptoki,fingunter/OpenCryptoki,joylatten/opencryptoki,joylatten/opencryptoki,joylatten/opencryptoki,fingunter/OpenCryptoki,joylatten/opencryptoki,shpedoikal/opencryptoki,joylatten/opencryptoki,shpedoikal/opencryptoki