Replace several thrown? test with thrown-with-msg?

because they had regex's after them which are ignored by a thrown?
test.

Also added a package path to a Java class used as a return type hint,
because tools.analyzer.jvm requires it to avoid throwing an exception.
It is harmless for Clojure.