Unit test for Minion_Task::factory()