Add test for Server.connect with pre-existing connection