Add tests for search distributor about combinations of sortBy and output