Pass server connection object argument on connection event. Add connectHeaders test.