Add test case for gh-699