Various test fixes for when PETSc is not enabled.