Add test cases for JavaSE 8