dogtail tests: Verify more carefully that backups load correctly/completely

Also do general refactoring to make the code more robust and easier to follow