Add test cases for flush plugin
Add test cases for flush plugin