Refactored regression test scripts to make them more modular and clean up some of the initial scripts added in the last commit.