Added tests for lists that are already sorted and that have repeated elements