implement a mock dht for use in testing