adding a new test on redistribution
builder pattern on messages
Merge pull request #1173 from clebertsuconic/master

builder pattern and test addition