Fixing Context test state cleanup

ServerHandlerTest was not clearing thread local state after the run.
This was occassionally causing (based on the order of the run) other tests to get the polluted thread state.