Add javadoc.
Refactor testcases: move input json to separate folders.