added unit tests for GeneralDocument