Regression test
Fix #1303
Regression test for #65