fixed Javadoc
add test