examples: add shunit2 tests for json_script