add test for jdk 8

add test for jdk 8