Added a test for async client