Set numElements to 1e+8 in checkError