Tests for document added.