Issue #2376683 by slashrsm: Add functional test.