adding test_thread.c and a test for pointer to pointer data
tesing thread mutex