Almost 30 years after Wilbert Awdry’s death, the managers of a trust ended up fighting HMRC in a bid to pay out less tax on the royalties