tests for building payload.