Fix sortedset setitem and improve tests
Add key param to SortedSet