add options for running, tests, and start/stop DHT in thread