Add tests for #9441
Merge pull request #9444 from frodsan/add_test_for_977455cc

Add tests for #9441