Restoring from test