dasm: add test

Closes #26383.

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