tests,json: Add more tests