update javadoc and test class