[MAINT] Add unit test for opengl window.

As the title says.