added tests for the backup functionality