Added tests for the NamedEvent