Fix isExecutedInThread

Update tests to assert isExecutedInThread true/false so we are sure the tests are getting what they expect.
RequestContext and Thread Life-cycle Fixes and Tests