Update test.go

update the example for new synchronous connection API.