fix asynchronous test