Added assertions for the logic that creates backups from the an original
hosts database file and assertions for the `revert` command.