Fix tests that use WebGL extensions

Fix tests that assume an extension is available or have a `DeveloperError`/`RuntimeError` mismatch.

Fixes #1501.