fix failing test with jdk 1.7