Add the corresponding tests for the `build` method that uses a `Payload` instead of a `File`.