Add test cases for JavaSE8