Moving task addition out of the loop it never belonged in.
Adding a list tasks static method to the Task class.
Setting npm test script.