add unittest for async call with wait