Invoke response and header serialization, tests