Added unit tests for get number of threads.