Added tests for document service class