Tests for discover-tasks.