Added pthread test.