Written unittest for Agent.loadConfig().
Added a Task class