Not sure if it will simplify it, but maybe there is a simple way to have one of the existing tests like `test_context_override` run in a separate thread.