Fix failing tests in box_spec.