Add test for invalid json structure