added test for domain event handler