Since ILIAS 5.4, certificates in ILIAS are persistent. Even if courses, tests or learning modules are deleted, you are still able to access any certificate you might have earned by them. In order to use this new functionality, you need to migrate your old certificates once.