fixed test case to close down the connection in between test cases to avoid duplicate clientID exceptions