Add testcase for feature added in e3703dad767 (fixes a coverage gap)