tests changed to flush data