Test new block connection API and update tests to new API