Implemented mock tests using a cut down version of the testutil set up.