Fix small bug in TestPartition setup.