added method to update last run time of tasks to schedule file
roughed in some unit tests for batch generation logic