simple test from stackoverflow
moved json generation to the class
more tests
continued refinement
Merge branch 'develop'