Add test for issue #8