Added SorterFactory unittest