Add tests for client utils.