flush and tests