fix test so it runs on jdk 1.5