This removes the need to call flush manually in each test, except when testing code that creates warning without checking them.