Test num thread

Test implementaiton of num_threads
not sure it is compiling