worked test actions into script functions