tests for pthread and openmp impl