I think moving this inside here will make the stacktrace less useful - if the stacktrace is taken above, it's not in the asynchronous code so it shows the actual test. Is there a reason it needs to be moved?