Fix spec test when linking with link resource