init openGL context in test environment