Use toString instead of toHexString in test