Restore bug fix, make previously added test pass.

1 job for 317111-non-regression-test in 5 minutes and 42 seconds (queued for 2 seconds)