Allow tests to run only on Java 6 even if we built on 7.