Add pthread test, tests dir will be used for various tests
Remove pthread binary from tests dir, add source file