Fixed lifecycle helper in tests, and added disconnect method to SailsSocket prototype.