Bug 234856: add automated test case (fixed by bug 235230). r=kaie