Fixing java test, missing canary field