fixed broken test
definitions for hyperlinks are collected first and only later removed
fixed test reference