Update javadoc of test classes.
Flush print writer in public api.