json test case from pull #1179