fix typo in javadoc
add test class for OptionalRandomizer