Error reporting tests