Extended unit tests for document entity