Add test cases.
Improve javadoc.
coding junit.
No changes.