Tests for eventListener and domainService