testsuite: Add testcase for #16394

Authored by bgamari on Tue, Mar 5, 7:33 PM.