Improved unit-test suit and publish encoding