Add test and test setup error events