control of max in-memory history from test_functions in order to test large-scale problems