Test for bug #9057

Commit 44b2180782, which aimed to resolve #9379, resolved #9057.

This is nothing but an additional test in core to prevent regressing back into #9057.