Added unit test for adding a task to a collection