test framework: fix error messaeg for keymgr invocation