Fixed some tests that were using the wrong variable in the link tests.