Adds a regression test for fix in commit c1e898fb