Test communication with KeyManager