adjust test to removal of waitFlush param