simple tests of new java8 features