Improve testing script for openmp and single-threaded compilations