junit tests for powerset and partitioning