Implement task serialization TDD.