First set of unit tests for backup
needs more refractoring
unit tests for backup.py currently satisfactory
future work is for integration testing.
Merge branch 'unit-tests' into devel