added test for random choice