Add java_packages var to test file.