Recover of TaskCommander. 

TaskCommanderTest runs based on static method. Since the initialization
part is in the main of task commander. So it will cause problem for
testing.