Add java_packages to test vars.