Test Java 8 features