Added in a test for the fix of sockets emitting close