tests/md: Fix error path to display the correct output.