Re-built unit tests for the ApnsConnection class.