Modify KeyRepositoryIT to run as a unit test.