Ensure TestCases in messages is serializable