fix some ontology loading bugs and incorrect tests

includes fixing the hacks in some tests that were calling createOntology
themselves before the test to make it work