Updated the tests to use the new cell properties for sorting and not the old ones. All tests now run smoothly. Make sure the xparts array actually exist in a cell before reinitialising its particles.