Add regression tests for PETSc
This MR adds some regression tests for PETSc and fixes issues with parallel builds when compiling PETSc as a third-party library.
This MR adds some regression tests for PETSc and fixes issues with parallel builds when compiling PETSc as a third-party library.