Fixed DHT_test.c and added some checks.