Adds document::links() tests.