test for java 8