Add a testcase that would have found the problem in r225048.