added test to make sure a connection has been established