add tests, and refactor Backup further
remove now broken and untested script