add more tests for document model