Move existing tests to use new helper function
Move existing tests to use new helper function

There was some common code in this test file that was being
repeated in each test case. Move those functions over to the new
helper interface.

Change-Id: I4fe5a44ed50633116ed11258ae453b23b26abfbc
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59074
Tested-by: Jenkins Server <8e3f934e4c44875bc48d33da3ea13d93ba9a233f@us.ibm.com>
Reviewed-by: Christian R. Geddes <f397583a9caa8163a06ad1128784fb67413f2fe6@us.ibm.com>
Tested-by: Jenkins OP Build CI <e610bd72261d3c0a48f1e8ae36832ab00774d426@us.ibm.com>
Tested-by: Jenkins OP HW <0eb0fff262f74a65a832afbcc7b153e391c9a3fd@us.ibm.com>
Tested-by: FSP CI Jenkins <aa9e4d9ac7cd25905e9c0dd36d4150516e73dd86@us.ibm.com>
Reviewed-by: Martin Gloff <df0a4963746ae04ab678d064fccc7ee68adfd751@us.ibm.com>
Reviewed-by: Daniel M. Crowell <912029ca9254ac7b5854e56910561d682e1fa2d0@us.ibm.com>

open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot