Use better test for UnsupportedClassVersionError.

The previous test worked correctly with the Oracle JVM but
failed with other JVMs. This new test should work correctly
on all JVMs.

Should fix issue #172.