Added CSV serialization test and functionality.