unit test coverage

update of the unit test. This should be merged before the avoidEvent as avoidEvent contains the modifications.