add test for JDK-8037945