Regression test for JNI::NewObject where we forgot to check if a class is
instantiable.
