List decoding and property testing of error-correcting codes