tests for java 8