Add runAsync to query test code
Merge branch 'Pool'
Use apply_async