* Update SortedQueue tests.
* Refactor SortedQueue tests.
* Remove SortedQueue#last, which was needed only in tests.