[Java]: 1. Fixed field name validation

2. Fixed ErrorHandlerTest (was passing without doing the assertions because assertions where done in block for exception that was never thrown)
3. Fixed  the xml files for the error handler tests to match the assertions.