Flushing and testing