Added unit tests to TaskService.
Doc updates.