Add regression test for #670
Merge pull request #716 from sharwell/fix-670

Add regression test for #670