New test interface

Use a pattern match to extract the `ScalaJSClassLoader`. This `asInstanceOf` is likely to fall into undefined behavior if people do bad things.