add failing test cases from #1038
Merge pull request #1054 from bronze1man/pr-test4

add failing test cases from #1038