port channelHandler to Netty 4 and pass test