added test for parsing json error