Java 8 basic tests