Test num thread

Test implementation of num_threads
not sure if compliant