test handling of AfterActivate event.