Non-regression test for fix in 2c05e067f2634c634c045744fe04fa4fc62ee35e