TestCollector should be serializable.