fixes in test case doPostConnect and doPostDisconnect