Completed test method for randomization