test case of thread local