fdupes: add test

Closes #26409.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>