midway testHelper

Some test helper functions.