Added unit test to test message array serialization for JsonMessageSerializer