Add tests for repartition2