Fix SharedTypePairCollectionTest; use charsets & not languages.
Added tests for TypePairSort, removed redundant check from TypePairSort.