fixed error and added test without openmp