tests+fixes for run,test,exec