changed the test java docum to make more sense and got rid of some warnings in the code