testCases implemented for reduceSpace,uniq