Changing tests to handle thread numbers.
Merge pull request #24 from rolobio/thread-num

Changing tests to handle thread numbers.