Fixed the threading test case (close gh-359)
Typo