add tests for thread variable behavior when the thread is frozen