test thread methods