Added unit tests for the tool task.