add test for jdk 8