Weird behavior test case for #1604