Add support for running scripts at test time