Finished serialization for payloads
Added tests for setup payload