Fixed unit test errors for sequential and OpenMP backends.