add tests and update get tasks