Here is the test with an InvalidClassException