add test from #1283