test: add unit testing for tasks