Fix failing test when switched from LINK_FILE to LINK_DOCUMENT