Add Java interop/dynamic function dispatch tests