fix regressions for mtest 'link'