modify to refactor test for OpenGL interoperability