Restore bug fix, make previously added test pass.

1 job for 317621-non-regression-test in 5 minutes and 44 seconds (queued for 3 seconds)