add test for random algorithm