local script to run test and set env