Fixed problems related to asynchronous test calls.