Serialization of the invoke response/packet and header. Tests passed.