add incomplete test for flush