generalize regression testing infrastructure

generalize regression test infrastructure so that a test can be added
simply be adding a file to the test directory