test code add.
Merge https://github.com/yuji-shimoda/thread