updated test for flush widget