Removes test in line with restoring type attribute for links