Tests for issue #48