Added disconnect() to the tests