Fixed tests to allow for sorted list

I forgot to check in the tests earlier! Here they are.