Add regression test; closes #1413