Adding unit tests for set operations, grouping, applying fixes