Add test for hashing Error objects