Test for issue #171