Added test cases from older Java versions to extensions.

Fixed a bug for JL7's case.