Add test case for the issue #704