add test for run, fix bug
add test for #run saving files