test case for #778
Merge pull request #779 from mariomulansky/master

test case for #778