Fixed error in tests.sh.
test_autobackup.py is no longer needed.
Added test code for backupRepository.Backup.

Also fixed some bugs in Backup, now exceptions are raised when an unfitting
directory name is given.