event publishing end handling tests added