WIP: bugfix jsonIndent; add mockito tests