Fix restore log and spec tests.