Test for #181
Fixes #181