Updated javadoc errors and added new test cases.