Correct tests during pre-hook

This PR enables to launch nosetests before deploying the application.