Fix test, allows restoring last backup in the list. Fixes #3438