Fixing the java prototypes tests