Det tst

this should correctly test for parent id == -1 -> agent has no parent