add testcase
bug fixed for issue 176