Updated Tests and Java docs.