test(domInterceptor.listener): add tests of listener function