fix test for java 5