fix a new apnsservice unit test bug