Add validation tests for Java 8

Tests which are compiled and executed in Java >= 8 environments only.