Tests for encoding payloads as blobs