added test for random