Tests for issue #23