test dynamically allocated exception message.

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>