Fix TR tests for new error messages

Related to commit fa81fb35f7361f0a985ad4d311400d621a2a5496