adding a test from #597