unit test for linked docs