added tests for CompareSort calls