Improved test coverage for illegal state change detection

Added a test that checks for recognition of deleted aggregates where the
markDeleted is invoked in outside the EventHandler method.