Thank you!
Forgot to mention: in input.jar, the relevant classes are test/Main$.class and scala/runtime/java8/JFunction0$mcV$sp.class, and for output.jar the same classes are located in test/a.class and a/e/a/h.class.
invokedynamic symbolic method reference seems to be not renamed when obfuscating