Fix unit test, qgis.core will always be available.
Merge branch 'safe_refactor' of github.com:akbargumbira/inasafe into safe_refactor