helper script to run a regression test