Add test for fix in a46ede.