The structure EDI_DC40 has a field TEST, which differentiates an IDOC for testing from an IDOC for productive posting.
This field has to be filled with the Conversion step of LSMW.
If this was not done, then your IDOCs are productive IDOCs and you cannot change them anymore to test idocs.
Delete them with WE11 and create new IDOCs