added error handling to __ittr__ hook, test fixed