Add test for issue #139