fix scripts to run tests