Fix bug in running tests when petsc4py is not available.
Merge pull request #265 from ketch/import_bugfix

Fix bug in running tests when petsc4py is not available.