Add test coverage for new client API methods.

Reviewed at https://reviews.apache.org/r/24241/