update tests with `flush`