gridfs: Remove old tests, fix Document factory