Add a test that would have found the bug in r219829.