add tests for links