Reset the cache when adding trusted clients back in on the chance that one of them has a different IP address.
Fixed several unit tests.