added flushTest