test: EventEmitter#setMaxListeners() returns this

Add a regression test for commit f8d8122.