add test for fetching DOs which belong to a logic

- It should be possible to fetch those homogeneous
  distributed ontologies which *belong* to a logic in
  the way that all child ontologies belong to that logic.
add passing code for logic specific DO fetching.