update test class random generator