apns: add TestQueuePopShift
apns: fix CompleteUntilErr bug