Add test for #197. Fixes #197