Fix cronjob for db backup.

Extend test for cronjob.