Threads test for cpp