complete test_decode_image test case
complete test_report_error test case