Test fixes, javadoc mostly for core module.