test_thread() added