Add test for issue #23