make test safer to run if it fails: avoid segfaults as there is no opengl context
initial document structure