Add tests for key management remote methods.