Add --test to dry_run and update_schedules
Fix error reporting