added ptp() and associated case test