add two test and some thinking in java