Fixed complete application backup.
Added test cases for application backups.