Add test for random selector