[test_utils] Add tests for malformed JSON handling in js_to_json