extend error handling to whole link loading process
add spec for link-loading error