add failing test cases from #1038