Fix #299: the test is defining global variables
Merge pull request #300 from julienw/299-fix-getMessage-test

Fix #299: the test is defining global variables