Add unit test for runAsync