combined helper functions into Trunk_testHelper.java