add ability to write script to file and delete tests