This "active" document seems like it might be fragile. The code in `createMockDocument` has protection against test failures that is not present here. Could that cause any problems?