added a test for jdk8