Added test case for disconnect.