updated petsc examples and tests