Tests for issue #34