Refactored tests for DocumentOperationsExample