Validation and improvement of the ZPC parton cascade inside a box