[errors] Add test file for error reporting features