testing error event handler