split pthread test into several files