Add test for pr #152