new tests and fixes for SortedSet, SortedMap and Queue. Make it run with Java 1.6