add tests from JDK8