Audit existing unit tests and refactor as much as possible to use the new `Client` class instead of the older patterns. Follow-up from #1870.
Audit existing unit tests and refactor as much as possible to use the new
Clientclass instead of the older patterns.Follow-up from #1870.