fix jdk7 test issue