Added missed javadoc, fixed test