The M suffix indicates it was used for maintenance training or other non flying task, ie non airworthy. Given that it went to the Radio School at MW before being renumbered chances are that is what it was doing. How it got to Woodvale is a matter of conjecture, assuming that the aircraft marked as TE400 actually is TE400. When reregistered the M number was usually applied in place of the original serial.