make `doctor`tests asynchronous