fix updating of Documents with event subscribers

fix for https://github.com/doctrine/phpcr-odm/issues/526
@asiragusa this tests changes to the document done before the flush call. as you might notice the test was already testing for changes done during a preUpdate event.