Write unit tests for Tasks class