Add test for code in 46312c571