Fix tests running
Add message for Task::setPermissions