added partitionwith tests, though some are failing