Added the first parts of code and a test for relpaying the events on the aggregate