Fixed serialization issue in test.