fix tests based on Wolfcrypt error codes.