adding tests around connect/disconnect