tests for document insertion