tests: add a test for the extra_java_files phase