move common test item generator to BstTest