Fixed Sorting Tests

Implemented sorting tests. Incorrect usage of query cache results, needs to be changed.

Correctly noted that case 2 (partial match) isn't currently accelerated.