added test for isConnected and close, ref #90