tests to show the differences between Java 7 and older versions