add a test for issue #171