DDC-2173 - Correct issue is about "postFlush" not "preFlush" and add test