add test/thread.rb