unit tests, javadoc