Test case for #66

Test case & fix for issue #66