Add parallel sum test
Add another test for sharing in pthreas