Fix links and pages tests