Add missing javadoc.
Increase test coverage.