Add test for issue 77