updated willFlush block in demo to work for entire paragraph #424
Added current test case for #424