Fixed VirtualMethod.TestGeneral and VirtualMethod.TestExceptions

Changed the reflection code to be in line with the Java code's
intention.