testing of thread