add a simple test for pthreads