Bug fix to slack variable update, edit to testing code