Fix codegen tests on Android

Since Android tests move files around, changing their packages, and 'toString'
tests the exact name of a class, we now get it via Java reflection