added tests for pubsub model.buildPayload