added thread local test