Add regression test for gh-issue-435