hashlib requires binary, not UNICODE
Add errrorhandler for test