Added test callbacks for local algorithm runs.