Update test.go

modify to test new synchronous connection function.