Upgrade logic slightly changed
Tests for lib/task.js