rm duplicate reset_mock, preproduction parts, and fixes old packages deletion