Add pnet_tests
posix: add pthread test case