bug fix in detecting non monophyletic nodes with the same OTT ID

study 1003 revealed a bug in detecting these cases. It has been added
as a test case.