adding payload factory tests