Add coverage for a #2387 related case