added test from #1381