testmem: correct message in case of failure