asm6: add test

Closes #26387.

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