apns: add tests
apns: fix bug
apns: remove junk lines and rename Type to Status
apns: add a test (receive response error)