Fixes error message encoding issue when using qpid

Making the message only consist of primitive types
before sending it by qpid.

Fixes bug 1242734

Change-Id: I3ff7a19af9a7671f955345ada6acfba8bf573c70
assertEquals is deprecated, use assertEqual

Also change to assertTrue/False where assertEqual(True,/False) was
used.

Change-Id: I9e592d9c40c3da61b5e7af7e7ad5247645249eff
Merge "Fixes error message encoding issue when using qpid"
Merge "assertEquals is deprecated, use assertEqual"