Use threadlocal execution context in test where possible