adapted TestDHT, some test are running in endless loops or wait eternal