added unit tests for sortfactory comb and merge