added testing new optional java 1.8 class