finished json detailed report, fixed according unittest, added optional pretty printing for result checking