Panel: Fix bad function reference in unit tests

Fixes gh-7500
Closes gh-7501