Fix output of localization test messages
Merge pull request #1798 from mlocati/fix-localization-test-error-messages

Fix output of localization test messages