added random test for list.