add selftests to the regression test script