Fix tests using eventemitter2