Added unit test to document model
last commit woohoooo