You should test the real implementation of kmRegistry, not a mock.