add: unique elements in input document
add: test case