Added a test proving that messages can be logged as objects.