Fixed error message test assertions under Python 3.3

Thanks Florian Apolloner for testing.