Fix of throwing exceptions.

- change of try-chatch block in ApplicationBase::init method
- add unit test of ApplicationBase class
- remove dependance on PETSC library in source file system.cc