tests/gl_basic_test: add apple/core context workaround