added test for PresenceSocket#close