add test to make sure the connection doesn't leak