fixes intermittent issue with test_autosample