added mock xhr test for backup.js