Fix entity definition as per BZ 1122261

Also: improve the output of error messages in test case `LongMessageTestCase`.
Why a tuple is needed?