Add script to run test in an encapsulated manner