added a new test to check randomly shuffled lists to be sorted correctly