Added unit tests for null checks in ApnsConnection and PushManager.