add unit test for apns library