Test document model