Add test for error attributes