Add a test case for C++11 thread_local support