Test for #183
Generalized the test slightly
Fixes #183