Added in a few tests for sortSelected method