Tests for issue #189