Add test to issue #159