Add more unit tests related to message serialization.