scheduled_task class and unit test