Added failing tests that exposes the issue related to concurrent reading and flushing