complete RandomTestHelper