Adding proper error handling for reporting mode tests