make `doctor` tests asynchronous