Add additional tests for new sortValues code.

This brings the test coverage back to 100%.