added flushes in test data init