"If a trust has two trustees, one of whom is the beneficiary, can either sign the tax return?"
Yes, any fiduciary may sign the trust's income tax return.