tests: update outputs to new distance matrix header

(cherry picked from commit 09fe43ea41e8c74ff5d7bec121dd6cdba3071f96)