Fix integration-tests-race-condition

On some machines integration tests will truncate database and
trying to show the ontology afterwards. Now fixed by setting the
Ontologystate to done -> no polling anymore

Please do this in integrationtests everytime you do not need Ontologies to be in a specific state