testsuite: Add tests for #16943

Authored by bgamari on Jul 15 2019, 7:58 PM.