add some improvements from test-multi to the test-sequential script