Some Java tests deliberately have error types
Minor: Reorder declarations
Properly load objects nested into class objects from Java