lib/java/web: fixed up tests