fixed unittest testDbnStructure()

Maybe we need a refactor.