Added a helper function for common setup.
Added a helper function for common setup.

aungzanbaw/gjstest,google/gjstest,aungzanbaw/gjstest,google/gjstest,google/gjstest,aungzanbaw/gjstest,google/gjstest,aungzanbaw/gjstest