Removed payload object from run_scripts, updated tests