adding unit tests for json