writing tests for send, disconnect and isConnected functions