adding serialize_one and create_record with tests