posix: add pthread test case