Do the test only with java8 (otherwise it will fail).