Routines and tests for payload adding