Testing the new java 8 features