disktype: add test

Closes #26579.

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