def METHOD_NAME(self, filter_regex=None, valgrind=False):
    """
    Run unit tests.
    Keyword arguments:
    filter_regex - Regular expression to select which tests to run
    """
    args = [self.make_program, "test"]
    if valgrind:
        if filter_regex:
            args.append("ARGS=-R %s -V -D ExperimentalMemCheck" % filter_regex)
        else:
            args.append("ARGS=-V -D ExperimentalMemCheck")
    else:
        if filter_regex:
            args.append("ARGS=-R %s -V -D ExperimentalTest" % filter_regex)
        else:
            args.append("ARGS=-V -D ExperimentalTest")
    if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
        args.append("VERBOSE=1")
    execute_program(args, "Unit test run failed.")