testcase add for bug 313
Merge pull request #290 from apaiva/test_for_313

Test for 313