tests: update tests to match new NewClient API.