Added unit test for repair script of legacy storages