add test for isConnected improvement on cached sessions